Welcome to Css!

第八章:边框属性

8.01 边框设置

边框四大要素:

1、 边框宽度

2、 边框颜色

3、 边框样式

4、 边框方向

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>css</title>

<style type="text/css">

div{

width:300px;height:100px;background:#ff00ff;line-height:50px;text-align:center;

border-top:blue 8px solid;

}

</style>

</head>

<body>

<div>我要好好学习</div>

</body>

</html>

返回: